import {axios} from '@/utils/request'

export function selectPage(parameter) {
  return axios({
    url: '/coupon/member/selectList/' + parameter.pageNum + "/" + parameter.pageSize,
    method: 'post',
    data: parameter
  })
}

export function save(parameter) {
  return axios({
    url: '/coupon/member/delPoints',
    method: 'post',
    data: parameter
  })
}

export function dealZeroPoints(parameter) {
  return axios({
    url: '/coupon/member/dealZeroPoints',
    method: 'post',
    data: parameter
  })
}

export function selectDetailPage(parameter) {
  return axios({
    url: '/coupon/memberCoupon/selectList/' + parameter.pageNum + "/" + parameter.pageSize,
    method: 'post',
    data: parameter
  })
}